<?php
namespace app\agent\controller;

use think\Db;
use think\Request;
use Godok\Org\Auth;
use think\Controller;
class Base extends Controller {

	public function __construct()
	{
		parent:: __construct();
		$this->user = Auth::user();
		$this->uid  = isset($this->user['id'])?$this->user['id']:null;
		if (empty($this->uid)) {
			$this->redirect('login/index');
		}
	}
}